package com.yy.main.app.mapper;

import com.yy.pojo.base.TBug;
import com.yy.pojo.base.TBugExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * bug管理Mapper 接口
 * </p>
 *
 * @author 杨阳
 * @since 2017-09-04
 */
@Repository
@Resource(name = "dataSource")
public interface TBugMapper {

    long countByExample(TBugExample example);

    int deleteByExample(TBugExample example);

    int deleteByPrimaryKey(String id);

    int insert(TBug record);

    int insertSelective(TBug record);

    List<TBug> selectByExample(TBugExample example);

    TBug selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TBug record, @Param("example") TBugExample example);

    int updateByExample(@Param("record") TBug record, @Param("example") TBugExample example);

    int updateByPrimaryKeySelective(TBug record);

    int updateByPrimaryKey(TBug record);
}